package com.example.demo.service.impl;

import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.ifs.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ak
 * @since 2020-04-02
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    UserMapper userMapper;
    public String checkPasswordByName(String username){
        return userMapper.checkPasswordByName(username);
    }

    public String getUserRole(String username){
        return userMapper.getUserRole(username);
    }

    public User getUserByName(String username){
        return userMapper.findeUserByUserName(username);
    }

}
